﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sispe.Entities;

namespace Sispe.Repository
{
    public interface IAreaContratoRepository
    {
        List<AREA_CONTRATO> GetAllFromAreaContrato();
        List<AREA_CONTRATO> GetAllFromAreaContratoByDescripcion(string descripcion);
        AREA_CONTRATO GetFromAreaContratoById(Int32 id);

        void AddAreaContrato(AREA_CONTRATO areaContrato);
        void UpdateAreaContrato(AREA_CONTRATO areaContrato);
        void DeleteAreaContrato(Int32 id);

        bool ExisteDuplicidad(string descripcion, int id);
    }
}
